﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="T_MaintainPage.aspx.cs" Inherits="T_MaintainPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LinkButton ID="LinkButton1" runat="server" Font-Underline="False" OnClick="LinkButton1_Click">首页</asp:LinkButton>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
        <br />
        <br />
        <br />
    </div>
   <div>
            <!--datagrid 用于数据绑定显示表格信息-->
            <asp:datagrid   id="dg1" runat="server"	 
                BorderColor="Black"
                BorderWidth="1px"
                CellPadding="3"
                Font-Size="8pt"
                OnEditCommand="MyDataGrid_Edit"
                OnCancelCommand="MyDataGrid_Cancel"
                OnUpdateCommand="MyDataGrid_Update"
                OnDeleteCommand="MyDataGrid_Delete"
                OnPageIndexChanged="MyDataGrid_Page" Width="667px" Font-Names="Verdana" PagerStyle-HorizontalAlign="Right"
                PagerStyle-Mode="NumericPages" AllowPaging="True"  HorizontalAlign="Center" AutoGenerateColumns="False" 
               >
            
                        <HeaderStyle BackColor="#AAAADD"/>
                        <EditItemStyle BackColor="Yellow"/>
                        <PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>

		                <columns>

		                        <asp:EditCommandColumn
                                     EditText="Edit"  
                                     CancelText="Cancel"
                                     UpdateText="Update"
                                     HeaderText="信息">
                                     <ItemStyle Wrap="False"/>
                                     <HeaderStyle Wrap="False"/>
                                 </asp:EditCommandColumn>
                                 <asp:BoundColumn HeaderText="courseid" DataField="courseid"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="coursename" DataField="coursename"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="studentid" DataField="studentid"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="studentname" DataField="studentname"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="class" DataField="class"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="mark" DataField="mark"/>
			                     <asp:BoundColumn HeaderText="semesterid" DataField="semesterid"  ReadOnly="true"/>
			                     <asp:BoundColumn HeaderText="semester" DataField="semester" ReadOnly="true"/>
                                 <asp:ButtonColumn CommandName="Delete" Text="Delete" ></asp:ButtonColumn>
		                </columns>
		                
	         </asp:datagrid>
	         
	          <p style="FONT-SIZE:9pt" align="center">    <!--用于分页-->
  
            <asp:label id="lblPageCount" runat="server"></asp:label>&nbsp;
            <asp:label id="lblCurrentIndex" runat="server"></asp:label>
            <asp:linkbutton id="btnFirst" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="0"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnPrev" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="prev"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnNext" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="next"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnLast" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="last"></asp:linkbutton>
                  </p>
	         
	</div>
	<div>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="输入课程名"></asp:Label>
	     <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Label ID="Label2" runat="server" Text="输入学号"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <asp:DropDownList ID="DL1" runat="server" Width="168px">
                <asp:ListItem>请选择学期</asp:ListItem>
                <asp:ListItem>大一上学期</asp:ListItem>
                <asp:ListItem>大一下学期</asp:ListItem>   
                <asp:ListItem>大二上学期</asp:ListItem>
                <asp:ListItem>大二下学期</asp:ListItem>   
                <asp:ListItem>大三上学期</asp:ListItem>
                <asp:ListItem>大三下学期</asp:ListItem>   
                <asp:ListItem>大四上学期</asp:ListItem>
                <asp:ListItem>大四下学期</asp:ListItem>  
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server" Text="提交" Width="68px" OnClick="Button1_Click" />
        </div>
        <div> 
            <br />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            <asp:Button ID="Button2" runat="server" Text="下载" Width="66px" OnClick="Button2_Click" /></div>
    </form>
</body>
</html>
